package org.jing.ext.office;

import org.jing.core.lang.itf.JEnum;

/**
 * Description: <br>
 *
 * @author bks <br>
 * @since 2021-03-03 <br>
 */
public enum FontName implements JEnum<String> {
    SimSun("SimSun"), Calibri("Calibri"), YaHei("Microsoft YaHei");

    private final String fontName;

    FontName(String fontName) {
        this.fontName = fontName;
    }

    public String getValue() {
        return fontName;
    }

    @Override public boolean equalsByType(Object... objects) {
        return fontName.equalsIgnoreCase((String) objects[0]);
    }

    @Override public String toString() {
        return fontName;
    }
}